package com.wu.Backstage.controller;

import com.wu.Backstage.check.MiddlelayerCheck;
import com.wu.Backstage.tool.Tool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping(value = "/easy")
public class EasyController {

    @Autowired
    private RedisTemplate redisTemplate;

    @Autowired
    private MiddlelayerCheck oftenCheckf;


    /**excel导出接口**/
    @RequestMapping(value = "/getUserExcel", method = {RequestMethod.POST, RequestMethod.GET})
    @ResponseBody
    @CrossOrigin
    public void getUserExcel(){
        Tool result = oftenCheckf.getUserExcel();
        oftenCheckf.Tres(result);
        return;
    }




}
